package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FitnessMembershipCardMapper;
import com.ruoyi.system.domain.FitnessMembershipCard;
import com.ruoyi.system.service.IFitnessMembershipCardService;

/**
 * 会员卡Service业务层处理
 * 
 * @author admin
 * @date 2025-01-03
 */
@Service
public class FitnessMembershipCardServiceImpl implements IFitnessMembershipCardService 
{
    @Autowired
    private FitnessMembershipCardMapper fitnessMembershipCardMapper;

    /**
     * 查询会员卡
     * 
     * @param id 会员卡主键
     * @return 会员卡
     */
    @Override
    public FitnessMembershipCard selectFitnessMembershipCardById(Long id)
    {
        return fitnessMembershipCardMapper.selectFitnessMembershipCardById(id);
    }

    /**
     * 查询会员卡列表
     * 
     * @param fitnessMembershipCard 会员卡
     * @return 会员卡
     */
    @Override
    public List<FitnessMembershipCard> selectFitnessMembershipCardList(FitnessMembershipCard fitnessMembershipCard)
    {
        return fitnessMembershipCardMapper.selectFitnessMembershipCardList(fitnessMembershipCard);
    }

    /**
     * 新增会员卡
     * 
     * @param fitnessMembershipCard 会员卡
     * @return 结果
     */
    @Override
    public int insertFitnessMembershipCard(FitnessMembershipCard fitnessMembershipCard)
    {
        return fitnessMembershipCardMapper.insertFitnessMembershipCard(fitnessMembershipCard);
    }

    /**
     * 修改会员卡
     * 
     * @param fitnessMembershipCard 会员卡
     * @return 结果
     */
    @Override
    public int updateFitnessMembershipCard(FitnessMembershipCard fitnessMembershipCard)
    {
        return fitnessMembershipCardMapper.updateFitnessMembershipCard(fitnessMembershipCard);
    }

    /**
     * 批量删除会员卡
     * 
     * @param ids 需要删除的会员卡主键
     * @return 结果
     */
    @Override
    public int deleteFitnessMembershipCardByIds(Long[] ids)
    {
        return fitnessMembershipCardMapper.deleteFitnessMembershipCardByIds(ids);
    }

    /**
     * 删除会员卡信息
     * 
     * @param id 会员卡主键
     * @return 结果
     */
    @Override
    public int deleteFitnessMembershipCardById(Long id)
    {
        return fitnessMembershipCardMapper.deleteFitnessMembershipCardById(id);
    }
}
